/*
 * WxUtils.cpp
 *
 *  Created on: Sep 7, 2011
 *      Author: erudhes
 */

#include "WxUtils.h"

const WxUtils::Color WxUtils::RED(255, 0, 0);
const WxUtils::Color WxUtils::GREEN(0, 255, 0);
const WxUtils::Color WxUtils::BLUE(0, 0, 255);
const WxUtils::Color WxUtils::BLACK(0, 0, 0);
const WxUtils::Color WxUtils::WHITE(255, 255, 255);

WxUtils::Color::Color(): mRed(0), mGreen(0), mBlue(0)
{
	// Nothing to do
}

WxUtils::Color::Color(unsigned char red, unsigned char green, unsigned char blue): mRed(red), mGreen(green), mBlue(blue)
{
	// Nothing to do
}

std::vector<wxPoint> WxUtils::getPointsAround(const wxPoint& point, unsigned int radius)
{
	std::vector<wxPoint> result;

	result.push_back(wxPoint(point.x - radius, point.y));
	result.push_back(wxPoint(point.x + radius, point.y));
	result.push_back(wxPoint(point.x, point.y - radius));
	result.push_back(wxPoint(point.x, point.y + radius));
	result.push_back(wxPoint(point.x - radius, point.y + radius));
	result.push_back(wxPoint(point.x - radius, point.y - radius));
	result.push_back(wxPoint(point.x + radius, point.y - radius));
	result.push_back(wxPoint(point.x + radius, point.y + radius));

	return result;
}

WxUtils::WxUtils()
{
	// Nothing to do
}

WxUtils::~WxUtils()
{
	// Nothing to do
}

